								<script type="text/javascript" language="javascript">
									function logout(){
										if ( confirm("¿Esta seguro que desea salir del sistema?") ) {
											open("../../controladores/sesion_controller.php?op=99","_self");
										} else {
											open("../sesion/index.php","_self");
										}
									}
								</script>
	
								<script Webstyle4>document.write('<scr'+'ipt src="../includes/menu/xaramenu.js">'+'</scr'+'ipt>');</script>
                                
							 	<script Webstyle4>
									//©Xara Ltd
									if(typeof(loc)=="undefined"||loc==""){var loc="";if(document.body&&document.body.innerHTML){var tt=document.body.innerHTML;var ml=tt.match(/["']([^'"]*)vnavbar.js["']/i);if(ml && ml.length > 1) loc=ml[1];}}
									
									var bd=0
									document.write("<style type=\"text/css\">");
									document.write("\n<!--\n");
									document.write(".vnavbar_menu {z-index:999;border-color:#ffffff;border-style:solid;border-width:"+bd+"px 0px "+bd+"px 0px;background-color:#0aa000;position:absolute;left:0px;top:0px;visibility:hidden;}");
									document.write(".vnavbar_plain, a.vnavbar_plain:link, a.vnavbar_plain:visited{text-align:left;background-color:#0aa000;color:#ffffff;text-decoration:none;border-color:#ffffff;border-style:solid;border-width:0px "+bd+"px 0px "+bd+"px;padding:2px 0px 2px 0px;cursor:hand;display:block;font-size:8pt;font-family:Arial, Helvetica, sans-serif;font-weight:bold;}");
									document.write("a.vnavbar_plain:hover, a.vnavbar_plain:active{background-color:#ff7f00;color:#ffffff;text-decoration:none;border-color:#ffffff;border-style:solid;border-width:0px "+bd+"px 0px "+bd+"px;padding:2px 0px 2px 0px;cursor:hand;display:block;font-size:8pt;font-family:Arial, Helvetica, sans-serif;font-weight:bold;}");
									document.write("a.vnavbar_l:link, a.vnavbar_l:visited{text-align:left;background:#0aa000 url("+loc+"../includes/menu/vnavbar_l.gif) no-repeat right;color:#ffffff;text-decoration:none;border-color:#ffffff;border-style:solid;border-width:0px "+bd+"px 0px "+bd+"px;padding:2px 0px 2px 0px;cursor:hand;display:block;font-size:8pt;font-family:Arial, Helvetica, sans-serif;font-weight:bold;}");
									document.write("a.vnavbar_l:hover, a.vnavbar_l:active{background:#ff7f00 url("+loc+"../includes/menu/vnavbar_l.gif) no-repeat right;color: #ffffff;text-decoration:none;border-color:#ffffff;border-style:solid;border-width:0px "+bd+"px 0px "+bd+"px;padding:2px 0px 2px 0px;cursor:hand;display:block;font-size:8pt;font-family:Arial, Helvetica, sans-serif;font-weight:bold;}");
									document.write("\n-->\n");
									document.write("</style>");
									
									var fc=0xffffff;
									var bc=0xff7f00;
									if(typeof(frames)=="undefined"){var frames=0;}
						
									<?php
										// Permisologia
										
										session_start();
										$lista_permisologia = $_SESSION['lista_permisologia'];	
							
									?>
										
									startMainMenu("",0,0,1,0,0)
									
									<?php
										if ( $lista_permisologia[1] == 1 || 
											$lista_permisologia[2] == 1 || 
											$lista_permisologia[3] == 1 || 
											$lista_permisologia[4] == 1 || 
											$lista_permisologia[5] == 1 || 
											$lista_permisologia[6] == 1 ) {
											echo 'mainMenuItem("../includes/menu/vnavbar_b1",".gif",22,160,"javascript:;","","Usuarios",1,2,"vnavbar_plain");';
											$menuItems_usuario = true;
										}
										
										if ( $lista_permisologia[7] == 1 || 
											$lista_permisologia[8] == 1 || 
											$lista_permisologia[9] == 1 || 
											$lista_permisologia[10] == 1 ) {
											echo 'mainMenuItem("../includes/menu/vnavbar_b2",".gif",22,160,"javascript:;","","Empleados",1,2,"vnavbar_plain");';
											$menuItems_empleado = true;
										}
										
										if ( $lista_permisologia[11] == 1 || 
											$lista_permisologia[12] == 1 || 
											$lista_permisologia[13] == 1 || 
											$lista_permisologia[14] == 1 ) {
											echo 'mainMenuItem("../includes/menu/vnavbar_b3",".gif",22,160,"javascript:;","","Sedes",1,2,"vnavbar_plain");';
											$menuItems_sede = true;
										}
										
										if ( $lista_permisologia[15] == 1 || 
											$lista_permisologia[16] == 1 || 
											$lista_permisologia[17] == 1 || 
											$lista_permisologia[18] == 1 ) {
											echo 'mainMenuItem("../includes/menu/vnavbar_b4",".gif",22,160,"javascript:;","","Materiales",1,2,"vnavbar_plain");';
											$menuItems_material = true;
										}
										
										if ( $lista_permisologia[19] == 1 || 
											$lista_permisologia[20] == 1 || 
											$lista_permisologia[21] == 1 || 
											$lista_permisologia[22] == 1 ) {
											echo 'mainMenuItem("../includes/menu/vnavbar_b5",".gif",22,160,"javascript:;","","Materiales",1,2,"vnavbar_plain");';
											$menuItems_material = true;
										}
										
										if ( $lista_permisologia[23] == 1 || 
											$lista_permisologia[24] == 1 || 
											$lista_permisologia[25] == 1 ) {
											echo 'mainMenuItem("../includes/menu/vnavbar_b6",".gif",22,160,"javascript:;","","Stocks",1,2,"vnavbar_plain");';
											$menuItems_stock = true;
										}
										
										if ( $lista_permisologia[26] == 1 || 
											$lista_permisologia[27] == 1 || 
											$lista_permisologia[28] == 1 || 
											$lista_permisologia[29] == 1 ) {
											echo 'mainMenuItem("../includes/menu/vnavbar_b7",".gif",22,160,"javascript:;","","Proveedores",1,2,"vnavbar_plain");';
											$menuItems_proveedor = true;
										}
										
										if ( $lista_permisologia[30] == 1 || 
											$lista_permisologia[31] == 1 || 
											$lista_permisologia[32] == 1  ) {
											echo 'mainMenuItem("../includes/menu/vnavbar_b8",".gif",22,160,"javascript:;","","Tipo Proveedores",1,2,"vnavbar_plain");';
											$menuItems_tipo_proveedor = true;
										}
										
										if ( $lista_permisologia[33] == 1 || 
											$lista_permisologia[34] == 1 || 
											$lista_permisologia[35] == 1 || 
											$lista_permisologia[36] == 1 ) {
											echo 'mainMenuItem("../includes/menu/vnavbar_b9",".gif",22,160,"javascript:;","","Clientes",1,2,"vnavbar_plain");';
											$menuItems_cliente = true;
										}
										
										if ( $lista_permisologia[37] == 1 || 
											$lista_permisologia[38] == 1 ) {
											echo 'mainMenuItem("../includes/menu/vnavbar_b10",".gif",22,160,"javascript:;","","Operaciones",1,2,"vnavbar_plain");';
											$menuItems_operaciones = true;
										}
										
										if ( $lista_permisologia[39] == 1 || 
											$lista_permisologia[40] == 1 || 
											$lista_permisologia[41] == 1 || 
											$lista_permisologia[42] == 1 ||
											$lista_permisologia[43] == 1 || 
											$lista_permisologia[44] == 1 || 
											$lista_permisologia[45] == 1 || 
											$lista_permisologia[46] == 1 ) {
											echo 'mainMenuItem("../includes/menu/vnavbar_b11",".gif",22,160,"javascript:;","","Reportes",1,2,"vnavbar_plain");';
											$menuItems_reportes = true;
										}
										
									?>
									
									mainMenuItem("../includes/menu/vnavbar_b12",".gif",22,160,loc+"../"+"../controladores/pre_controller.php?op=98","","Ayuda",2,2,"vnavbar_plain");
									
									mainMenuItem("../includes/menu/vnavbar_b13",".gif",22,160,"javascript:logout();","","Salir",2,2,"vnavbar_plain");
									endMainMenu("",0,0);
							
									<?php
										// Menu Usuario 
										if ( $menuItems_usuario == true ) {
											echo 'startSubmenu("../includes/menu/vnavbar_b1","vnavbar_menu",125);';
											if ( $lista_permisologia[1] == "1" ) {
												echo 'submenuItem("Agregar Usuario",loc+"../"+"../controladores/pre_controller.php?op=1","","vnavbar_plain");';
											}
											if ( $lista_permisologia[2] == "1" ) {
												echo 'submenuItem("Modificar Usuario",loc+"../"+"../controladores/pre_controller.php?op=2","","vnavbar_plain");';
											}
											if ( $lista_permisologia[3] == "1" ) {
												echo 'submenuItem("Reiniciar Usuario",loc+"../"+"../controladores/pre_controller.php?op=3","","vnavbar_plain");';
											}
											if ( $lista_permisologia[4] == "1" ) {
												echo 'submenuItem("Consultar Usuarios",loc+"../"+"../controladores/pre_controller.php?op=4","","vnavbar_plain");';
											}
											if ( $lista_permisologia[5] == "1" ) {
												echo 'submenuItem("Eliminar Usuario",loc+"../"+"../controladores/pre_controller.php?op=5","","vnavbar_plain");';
											}
											if ( $lista_permisologia[6] == "1" ) {
												echo 'submenuItem("Modificar Contrase&ntilde;a",loc+"../"+"../controladores/pre_controller.php?op=6","","vnavbar_plain");';
											}
											echo 'endSubmenu("vnavbar_b1");';
										}
								
										// Menu Empleado
										if ( $menuItems_empleado == true ) {
											echo 'startSubmenu("../includes/menu/vnavbar_b2","vnavbar_menu",130);';
											if ( $lista_permisologia[7] == "1" ) {
												echo 'submenuItem("Agregar Empleado",loc+"../"+"../controladores/pre_controller.php?op=7","","vnavbar_plain");';
											}
											if ( $lista_permisologia[8] == "1" ) {
												echo 'submenuItem("Modificar Empleado",loc+"../"+"../controladores/pre_controller.php?op=8","","vnavbar_plain");';
											}
											if ( $lista_permisologia[9] == "1" ) {
												echo 'submenuItem("Consultar Empleados",loc+"../"+"../controladores/pre_controller.php?op=9","","vnavbar_plain");';
											}
											if ( $lista_permisologia[10] == "1" ) {
												echo 'submenuItem("Eliminar Empleado",loc+"../"+"../controladores/pre_controller.php?op=10","","vnavbar_plain");';
											}
											echo 'endSubmenu("vnavbar_b2");';
										}
								
										// Menu Sede
										if ( $menuItems_sede == true ) {
											echo 'startSubmenu("../includes/menu/vnavbar_b3","vnavbar_menu",104);';
											if ( $lista_permisologia[11] == "1" ) {
												echo 'submenuItem("Agregar Sede",loc+"../"+"../controladores/pre_controller.php?op=11","","vnavbar_plain");';
											}
											if ( $lista_permisologia[12] == "1" ) {
												echo 'submenuItem("Modificar Sede",loc+"../"+"../controladores/pre_controller.php?op=12","","vnavbar_plain");';
											}
											if ( $lista_permisologia[13] == "1" ) {
												echo 'submenuItem("Consultar Sedes",loc+"../"+"../controladores/pre_controller.php?op=13","","vnavbar_plain");';
											}
											if ( $lista_permisologia[14] == "1" ) {
												echo 'submenuItem("Eliminar Sede",loc+"../"+"../controladores/pre_controller.php?op=14","","vnavbar_plain");';
											}
											echo 'endSubmenu("vnavbar_b3");';
										}
								
										// Menu Material
										if ( $menuItems_material == true ) {
											echo 'startSubmenu("../includes/menu/vnavbar_b4","vnavbar_menu",113);';
											if ( $lista_permisologia[15] == "1" ) {
												echo 'submenuItem("Agregar Material",loc+"../"+"../controladores/pre_controller.php?op=15","","vnavbar_plain");';
											}
											if ( $lista_permisologia[16] == "1" ) {
												echo 'submenuItem("Modificar Material",loc+"../"+"../controladores/pre_controller.php?op=16","","vnavbar_plain");';
											}
											if ( $lista_permisologia[17] == "1" ) {
												echo 'submenuItem("Consultar Material",loc+"../"+"../controladores/pre_controller.php?op=17","","vnavbar_plain");';
											}
											if ( $lista_permisologia[18] == "1" ) {
												echo 'submenuItem("Eliminar Material",loc+"../"+"../controladores/pre_controller.php?op=18","","vnavbar_plain");';
											}
											echo 'endSubmenu("vnavbar_b4");';
										}
									
										// Menu Tipo Material
										if ( $menuItems_material == true ) {
											echo 'startSubmenu("../includes/menu/vnavbar_b5","vnavbar_menu",140);';
											if ( $lista_permisologia[19] == "1" ) {
												echo 'submenuItem("Agregar Tipo Material",loc+"../"+"../controladores/pre_controller.php?op=19","","vnavbar_plain");';
											}
											if ( $lista_permisologia[20] == "1" ) {
												echo 'submenuItem("Modificar Tipo Material",loc+"../"+"../controladores/pre_controller.php?op=20","","vnavbar_plain");';
											}
											if ( $lista_permisologia[21] == "1" ) {
												echo 'submenuItem("Consultar Tipo Material",loc+"../"+"../controladores/pre_controller.php?op=21","","vnavbar_plain");';
											}
											if ( $lista_permisologia[22] == "1" ) {
												echo 'submenuItem("Eliminar Tipo Material",loc+"../"+"../controladores/pre_controller.php?op=22","","vnavbar_plain");';
											}
											echo 'endSubmenu("vnavbar_b5");';
										}
								
										// Menu Stock
										if ( $menuItems_stock == true ) {
											echo 'startSubmenu("../includes/menu/vnavbar_b6","vnavbar_menu",107);';
											if ( $lista_permisologia[23] == "1" ) {
												echo 'submenuItem("Agregar Stock",loc+"../"+"../controladores/pre_controller.php?op=23","","vnavbar_plain");';
											}
											if ( $lista_permisologia[24] == "1" ) {
												echo 'submenuItem("Consultar Stocks",loc+"../"+"../controladores/pre_controller.php?op=24","","vnavbar_plain");';
											}
											if ( $lista_permisologia[25] == "1" ) {
												echo 'submenuItem("Eliminar Stock",loc+"../"+"../controladores/pre_controller.php?op=25","","vnavbar_plain");';
											}
											echo 'endSubmenu("vnavbar_b6");';
										}
										
										// Menu Proveedor
										if ( $menuItems_proveedor == true ) {
											echo 'startSubmenu("../includes/menu/vnavbar_b7","vnavbar_menu",140);';
											if ( $lista_permisologia[26] == "1" ) {
												echo 'submenuItem("Agregar Proveedor",loc+"../"+"../controladores/pre_controller.php?op=26","","vnavbar_plain");';
											}
											if ( $lista_permisologia[27] == "1" ) {
												echo 'submenuItem("Modificar Proveedor",loc+"../"+"../controladores/pre_controller.php?op=27","","vnavbar_plain");';
											}
											if ( $lista_permisologia[28] == "1" ) {
												echo 'submenuItem("Consultar Proveedores",loc+"../"+"../controladores/pre_controller.php?op=28","","vnavbar_plain");';
											}
											if ( $lista_permisologia[29] == "1" ) {
												echo 'submenuItem("Eliminar Proveedor",loc+"../"+"../controladores/pre_controller.php?op=29","","vnavbar_plain");';
											}
											echo 'endSubmenu("vnavbar_b7");';
										}
										
										// Menu Tipo Proveedor
										if ( $menuItems_tipo_proveedor == true ) {
											echo 'startSubmenu("../includes/menu/vnavbar_b8","vnavbar_menu",154);';
											if ( $lista_permisologia[30] == "1" ) {
												echo 'submenuItem("Agregar Tipo Proveedor",loc+"../"+"../controladores/pre_controller.php?op=30","","vnavbar_plain");';
											}
											if ( $lista_permisologia[31] == "1" ) {
												echo 'submenuItem("Modificar Tipo Proveedor",loc+"../"+"../controladores/pre_controller.php?op=31","","vnavbar_plain");';
											}
											if ( $lista_permisologia[32] == "1" ) {
												echo 'submenuItem("Consultar Tipo Proveedor",loc+"../"+"../controladores/pre_controller.php?op=32","","vnavbar_plain");';
											}
											if ( $lista_permisologia[33] == "1" ) {
												echo 'submenuItem("Eliminar Tipo Proveedor",loc+"../"+"../controladores/pre_controller.php?op=33","","vnavbar_plain");';
											}
											echo 'endSubmenu("vnavbar_b8");';
										}
										
										// Menu Cliente
										if ( $menuItems_cliente == true ) {
											echo 'startSubmenu("../includes/menu/vnavbar_b9","vnavbar_menu",108);';
											if ( $lista_permisologia[34] == "1" ) {
												echo 'submenuItem("Agregar Cliente",loc+"../"+"../controladores/pre_controller.php?op=34","","vnavbar_plain");';
											}
											if ( $lista_permisologia[35] == "1" ) {
												echo 'submenuItem("Modificar Cliente",loc+"../"+"../controladores/pre_controller.php?op=35","","vnavbar_plain");';
											}
											if ( $lista_permisologia[36] == "1" ) {
												echo 'submenuItem("Consultar Cliente",loc+"../"+"../controladores/pre_controller.php?op=36","","vnavbar_plain");';
											}
											if ( $lista_permisologia[37] == "1" ) {
												echo 'submenuItem("Eliminar Cliente",loc+"../"+"../controladores/pre_controller.php?op=37","","vnavbar_plain");';
											}
											echo 'endSubmenu("vnavbar_b9");';
										}
										
										// Menu Operaciones
										if ( $menuItems_operaciones == true ) {
											echo 'startSubmenu("../includes/menu/vnavbar_b10","vnavbar_menu",185);';
											if ( $lista_permisologia[38] == "1" ) {
												echo 'submenuItem("Registrar Entrada de Materiales",loc+"../"+"../controladores/pre_controller.php?op=38","","vnavbar_plain");';
											}
											if ( $lista_permisologia[39] == "1" ) {
												echo 'submenuItem("Registrar Salida de Materiales",loc+"../"+"../controladores/pre_controller.php?op=39","","vnavbar_plain");';
											}
											echo 'endSubmenu("vnavbar_b10");';
										}
										
										// Menu Reportes
										if ( $menuItems_reportes == true ) {
											echo 'startSubmenu("../includes/menu/vnavbar_b11","vnavbar_menu",211);';
											if ( $lista_permisologia[40] == "1" ) {
												echo 'submenuItem("Movimiento General",loc+"../"+"../controladores/pre_controller.php?op=40","","vnavbar_plain");';
											}
											if ( $lista_permisologia[41] == "1" ) {
												echo 'submenuItem("Movimiento Detallado",loc+"../"+"../controladores/pre_controller.php?op=41","","vnavbar_plain");';
											}
											if ( $lista_permisologia[42] == "1" ) {
												echo 'submenuItem("Inventario de Materiales",loc+"../"+"../controladores/pre_controller.php?op=42","","vnavbar_plain");';
											}
											if ( $lista_permisologia[43] == "1" ) {
												echo 'submenuItem("Historico de Materiales",loc+"../"+"../controladores/pre_controller.php?op=43","","vnavbar_plain");';
											}
											if ( $lista_permisologia[44] == "1" ) {
												echo 'submenuItem("Historico de Tipo de Materiales",loc+"../"+"../controladores/pre_controller.php?op=44","","vnavbar_plain");';
											}
											if ( $lista_permisologia[45] == "1" ) {
												echo 'submenuItem("Historico de Cliente",loc+"../"+"../controladores/pre_controller.php?op=45","","vnavbar_plain");';
											}
											if ( $lista_permisologia[46] == "1" ) {
												echo 'submenuItem("Historico de Proveedores",loc+"../"+"../controladores/pre_controller.php?op=46","","vnavbar_plain");';
											}
											if ( $lista_permisologia[47] == "1" ) {
												echo 'submenuItem("Historico de Tipo Proveedores",loc+"../"+"../controladores/pre_controller.php?op=47","","vnavbar_plain");';
											}
											if ( $lista_permisologia[48] == "1" ) {
												echo 'submenuItem("Operaciones del Sistema (Auditoria)",loc+"../"+"../controladores/pre_controller.php?op=48","","vnavbar_plain");';
											}
											echo 'endSubmenu("vnavbar_b11");';
										}
										
									?>
						
									loc="";
						
								</script>